<div class="panel panel-custom editor">
    <div class="panel-heading editor">数据集管理-{{dataSet.dataset_name}}
        [<a class="white_a_link" ng-click="gotoSchema()">
            <i class="glyphicon glyphicon-link">
            </i>
            数据模型-{{schema.schema_name}}</a>
        ]
        <a ng-click="switchTreeSidebar()" class="show-sidebar">
            <i class="fa fa-bars"></i>
        </a>
        <a ng-click="gotoDefault()" class="go-default">
            <i class="glyphicon glyphicon-search"></i>
        </a>
    </div>
    <div class="panel-body editor schema-edit-form">
        <form role="form" editable-form class="form-content" name="dataset_Form">
            <div class="form-group">
                <label for="dataset_code" class="control-label col-xs-2">数据集编码</label>
                <div class="col-xs-10">
                    <input type="text" ng-model="dataSet.dataset_code" class="form-control" unique-dataset-code
                           required name="dataset_code" id="dataset_code" placeholder="数据模型编码">
                </div>
            </div>
            <div class="text-center">
                <span ng-show="dataset_Form.dataset_code.$error.dataset_code_unique" class="form_error">数据集编码重复.</span>
            </div>
            <div class="form-group">
                <label for="dataset_name" class="control-label col-xs-2">数据集名称</label>
                <div class="col-xs-10">
                    <input type="text" ng-model="dataSet.dataset_name" class="form-control"
                           required name="dataset_name" id="dataset_name" placeholder="数据模型名称">
                </div>
            </div>
            <div class="form-group">
                <label for="dataservice_type" class="control-label col-xs-2">数据源类型</label>
                <div class="col-xs-10">
                    <select name="dataservice_type" class="form-control" id="dataservice_type" required
                            ng-change="changeServiceType(dataset_defines.DataServiceType)"
                            ng-options="type.value as type.text for type in dataServiceTypes"
                            ng-model="dataset_defines.DataServiceType"></select>
                </div>
            </div>
            <div class="dataset-meta-container ng-animate-disabled" ui-view>
            </div>
        </form>
    </div>
    <div class="panel-footer editor">
        <button class="btn btn-success" type="button"
                ng-disabled="dataset_Form.dataset_code.$invalid
                            || dataset_Form.dataset_name.$invalid
                            || dataset_Form.dataservice_type.$invalid
                            " ng-click="save()">保存</button>
    </div>
</div>